package cn.z2huo.mybatis.generator.mybatisplus.plugin;

import org.mybatis.generator.api.CompositePlugin;

import java.util.List;

/**
 * <p>
 *
 * @author z2huo
 */
public class DisableAllMethodPlugin extends CompositePlugin {

    public DisableAllMethodPlugin() {
        super.addPlugin(new CustomDisableInsertPlugin());
        super.addPlugin(new CustomDisableDeletePlugin());
        super.addPlugin(new CustomDisableUpdatePlugin());
        super.addPlugin(new CustomDisableSelectPlugin());
    }

    @Override
    public boolean validate(List<String> warnings) {
        return true;
    }

}
